package com.lc.ws.test;

public class UsersManagerWebServiceProxy implements com.lc.ws.test.UsersManagerWebService {
  private String _endpoint = null;
  private com.lc.ws.test.UsersManagerWebService usersManagerWebService = null;
  
  public UsersManagerWebServiceProxy() {
    _initUsersManagerWebServiceProxy();
  }
  
  public UsersManagerWebServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initUsersManagerWebServiceProxy();
  }
  
  private void _initUsersManagerWebServiceProxy() {
    try {
      usersManagerWebService = (new com.lc.ws.test.UsersManagerWebServiceServiceLocator()).getUsersManagerWebServicePort();
      if (usersManagerWebService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)usersManagerWebService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)usersManagerWebService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (usersManagerWebService != null)
      ((javax.xml.rpc.Stub)usersManagerWebService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.lc.ws.test.UsersManagerWebService getUsersManagerWebService() {
    if (usersManagerWebService == null)
      _initUsersManagerWebServiceProxy();
    return usersManagerWebService;
  }
  
  public java.lang.String sayHi(java.lang.String arg0) throws java.rmi.RemoteException{
    if (usersManagerWebService == null)
      _initUsersManagerWebServiceProxy();
    return usersManagerWebService.sayHi(arg0);
  }
  
  public void addUser(com.lc.ws.test.Users arg0) throws java.rmi.RemoteException{
    if (usersManagerWebService == null)
      _initUsersManagerWebServiceProxy();
    usersManagerWebService.addUser(arg0);
  }
  
  
}